<template>
	<view class="lines-bar">
		<view class="lines-bar_icons">
			<view class="lines-bar_icons_item">
				<rui-icon icon="service" size="40"></rui-icon>
				<view class="lines-bar_icons_item_name">
					客服
				</view>
			</view>
			<view class="lines-bar_icons_item">
				<rui-icon icon="group" color="#f30" size="40"></rui-icon>
				<view class="lines-bar_icons_item_name red">
					进群
				</view>
			</view>
			<view class="lines-bar_icons_item">
				<rui-icon icon="collect" size="40"></rui-icon>
				<view class="lines-bar_icons_item_name">
					收藏
				</view>
			</view>
		</view>
		<view class="lines-bar_btn" @click="change">
			立即报名
		</view>
	</view>
</template>

<script setup>
	const emits = defineEmits(['change'])

	const change = () => {
		emits('change')
	}
</script>

<style lang="scss" scoped>
	.lines-bar {
		position: fixed;
		bottom: 0;
		left: 0;
		width: calc(100% - 20rpx);
		background: #fff;
		box-shadow: 0 0 10rpx rgba(0, 0, 0, .06);
		display: flex;
		justify-content: space-between;
		padding: 10rpx;
		align-items: center;
		z-index: 99;

		.red {
			color: #f30;
		}

		&_icons {
			display: flex;
			justify-content: space-between;
			width: calc(100% - 380rpx);

			&_item {
				text-align: center;
				width: 33%;

				&_name {
					font-size: 20rpx;
					color: #333;
				}
			}
		}

		&_btn {
			background: #f30;
			width: 350rpx;
			height: 70rpx;
			border-radius: 50rpx;
			text-align: center;
			line-height: 70rpx;
			color: #fff;
		}
	}
</style>